package org.wekit.engine.pvm.runtime;

import org.wekit.engine.pvm.PvmEvent;
import org.wekit.engine.pvm.process.Scope;

public class AtomicOperationActivityStart extends AbstractEventAtomicOperation {

	@Override
	protected Scope getScope(InterpretableExecution execution) {
		return (Scope)execution.getActivity();
	}

	@Override
	protected String getEventName() {
		return PvmEvent.EVENTNAME_START;
	}

	/**
	 * 触发节点执行动作
	 */
	@Override
	protected void eventNotificationsCompleted(InterpretableExecution execution) {
		execution.performOperation(new AtomicOperationActivityExecute());
	}
}
